import {expect, test} from 'bun:test';
import {createCmt} from '../create/iso-base-media/ilst/create-cmt';

const reference = new Uint8Array([
	0x00, 0x00, 0x00, 0x32, 0xa9, 0x63, 0x6d, 0x74, 0x00, 0x00, 0x00, 0x2a, 0x64,
	0x61, 0x74, 0x61, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x4d, 0x61,
	0x64, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x52, 0x65, 0x6d, 0x6f, 0x74,
	0x69, 0x6f, 0x6e, 0x20, 0x34, 0x2e, 0x30, 0x2e, 0x32, 0x32, 0x37,
]);

test('create cmt', () => {
	expect(createCmt('Made with Remotion 4.0.227')).toEqual(reference);
});
